package controller

import (
	"github.com/gin-gonic/gin"
	"utility/command"
)

func InstallNginx(c *gin.Context) {
	if err := CheckSession(c); err != nil {
		ReturnFailed(err.Error(), c)
	}
	//common.WriteFile("/")
	command.RunCmd("/bin/bash -c ", "yum install -y nginx")
	ReturnSuccess(c)
	return
}

/**
返回执行日志
*/
func GetProgress(c *gin.Context) {

	ReturnSuccessWithData("", c)
	return
}
